StringScanner.ScanToAlpha Function

Syntax

ScanToAlpha as C()

Arguments

Text

The text between the starting and ending offset positions.

Description

Skip until a alphabetic character is encountered. Return text we scanned over.

Discussion

The <StringScanner>.ScanToAlpha() function moves the offset to the first character position after the next alphabetic character and returns the text between the starting and ending positions of the offset. The offset is positioned immediately after the found data.

Example

dim scanner as P
dim txt as C
txt = <<%text%
1234 is wonderful prose written
by a technical writer of note.
%text%
scanner = stringscanner.create(txt)
? scanner.text
= 1234 is wonderful prose written
by a technical writer of note.
? scanner.scantoalpha()
= "1234 "
? scanner.GetToOffset()
= "1234 "
? scanner.getremainder()
= is wonderful prose written
by a technical writer of note.

See Also